home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Games / Ocean-HDinst / SleepwalkerAGA / Install-Sleepwalker < prev    next >
Text File  |  1997-09-12  |  2KB  |  99 lines

  1.  
  2. ;try to figure out a place where the user usually installs his games
  3. (if (exists "Games:" (noreq) )
  4.     (set @default-dest "Games:")
  5.     (if (exists "SYS:Games" (noreq) )
  6.         (set @default-dest "SYS:Games")
  7.         (if (exists "Work:Games" (noreq) )
  8.             (set @default-dest "Work:Games")
  9.             (if (exists "JEUX:" (noreq) )
  10.                (set @default-dest "JEUX:")
  11.                (set @default-dest "SYS:")
  12.             )
  13.         )
  14.     )
  15. )
  16.  
  17. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  18.  
  19. (set default-dest
  20. (askdir
  21.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  22.     (help @askdir-help)
  23.     (default @default-dest)
  24.     (disk)
  25. )
  26. )
  27.  
  28. (set #dest (tackon default-dest @app-name))
  29.  
  30. (set #CI_unit
  31.     (askchoice
  32.         (prompt "From which disk unit do you want\nto install the game")
  33.         (help    @askoptions-help)
  34.         (choices
  35.            "DF0:"
  36.            "DF1:"
  37.            "DF2:"
  38.            "DF3:"
  39.         )
  40.     )
  41. )
  42.  
  43. (set #CI_drive ("DF%ld:" #CI_unit))
  44.  
  45.  
  46. (makedir #dest
  47.     (help @makedir-help)
  48.     (infos)
  49. )
  50.  
  51. ;----------------------------
  52.  
  53. (copyfiles
  54.     (help @copyfiles-help)
  55.     (source "swalkHD")
  56.     (dest #dest)
  57.     (infos)
  58. )
  59.  
  60. (copyfiles
  61.     (help @copyfiles-help)
  62.     (source "swalkhd.readme")
  63.     (dest #dest)
  64.     (infos)
  65. )
  66.  
  67.  
  68. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  69.     (if
  70.         (= 0 (run ("disk2file %ld \"%s/swalk.d1\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  71.         ("")
  72.         (abort "\"disk2file\" must be in your PATH !")
  73.     )
  74.  
  75. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  76.     (if
  77.         (= 0 (run ("disk2file %ld \"%s/swalk.d2\" >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  78.         ("")
  79.         (abort "\"disk2file\" must be in your PATH !")
  80.     )
  81.  
  82. (message ("\nInsert %s disk 3 into drive %s !" @app-name #CI_drive))
  83.     (if
  84.         (= 0 (run ("disk2file %ld \"%s/swalk.d3\" >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  85.         ("")
  86.         (abort "\"disk2file\" must be in your PATH !")
  87.     )
  88.  
  89. (message ("\nInsert %s disk 4 into drive %s !" @app-name #CI_drive))
  90.     (if
  91.         (= 0 (run ("disk2file %ld \"%s/swalk.d4\" >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  92.         ("")
  93.         (abort "\"disk2file\" must be in your PATH !")
  94.     )
  95.  
  96.  
  97. (exit)
  98.  
  99.